#pragma once

#include "DirectX\RenderableEntity.h"

namespace Graphics
{
	class Buffer;
}

class Triangle : public Graphics::RenderableEntity
{
	struct VertexType
	{
		D3DXVECTOR3 Position;
		D3DXVECTOR4 Color;
		D3DXVECTOR2 Texture;
		D3DXVECTOR3 normal;
	};
public:
	Triangle(void);
	virtual ~Triangle(void);
	virtual void Render();
	virtual void Initialize();
	virtual int GetIndexCount();
	virtual int GetInstanceCount();
private:
	Graphics::Buffer* mVertexBuffer;
	Graphics::Buffer* mIndexBuffer;
	int mVertexCount;
	int mIndexCount;
};